//
//  IQStickerView.h
//  Created by Iftekhar Qurashi on 15/08/13.

#import <UIKit/UIKit.h>

@protocol IQStickerViewDelegate;

@interface IQStickerView : UIView<UIGestureRecognizerDelegate, UITextFieldDelegate>
{
    UIImageView *resizeView;
    UIImageView *rotateView;
    UIImageView *closeView;

    BOOL _isShowingEditingHandles;
}

//@property (strong, nonatomic) UIView *contentView;
@property (nonatomic, assign) CGRect rect;

@property (unsafe_unretained) id <IQStickerViewDelegate> delegate;

@property(nonatomic, assign) BOOL showContentShadow;    //Default is YES.
@property(nonatomic, assign) BOOL enableClose;  // default is YES. if set to NO, user can't delete the view
@property(nonatomic, assign) BOOL enableResize;  // default is YES. if set to NO, user can't Resize the view
@property(nonatomic, assign) BOOL enableRotate;  // default is YES. if set to NO, user can't Rotate the view


@property (nonatomic, strong) NSString *textString;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, assign) float     jiaoduFloat;
@property (nonatomic, assign) CGFloat  ImageAlpha;
@property (nonatomic, strong) UIImage *image;
//@property (nonatomic, assign) 

//裁剪图片
//- (UIImage *)cropImage;


- (void)setjiaodu:(CGFloat)jiaodu  rect:(CGRect)boundrect;

- (void)hideBiangkuang;
- (void)showBiankuang;

@end

@protocol IQStickerViewDelegate <NSObject>
@optional
- (void)stickerViewDidBeginEditing:(IQStickerView *)sticker;
- (void)stickerViewDidChangeEditing:(IQStickerView *)sticker;
- (void)stickerViewDidEndEditing:(IQStickerView *)sticker;

- (void)stickerViewDidClose:(IQStickerView *)sticker;

- (void)stickerViewDidShowEditingHandles:(IQStickerView *)sticker;
- (void)stickerViewDidHideEditingHandles:(IQStickerView *)sticker;

- (void)showTextField;

//记录视图的位置
- (void)saveQipaoBounds:(CGRect)rect
             withJiaodu:(CGFloat)jiaodu
        withLableFrameX:(float)lableX
                  withY:(float)lableY
             withLableW:(float)lablewidth
             withlableH:(float)lableheight
            withContent:(NSString *)string
              withAlpha:(float)alpha
          withTextColor:(NSString *)TextColor;


//移除试图
- (void)removeQipaoView;





@end


